console.log("loading: background.shadow.js");
function BackgroundShadow(container)
{
	//console.log("BackgroundShadow::ctor()");
	if (container==undefined)
	{
		container =document.body; 
	}
	this.$shadow=$('<div/>').hide().addClass('message-modal-window-mask').appendTo(container);
	this.$container=$(container);
}

BackgroundShadow.prototype={
	Show:function()
	{
		//console.log("BackgroundShadow::Show()");
		var maskHeight = this.$container.height();
		var maskWidth = this.$container.width();
		this.$shadow
			//.css({'width':maskWidth+100,'height':maskHeight/*,'opacity':0*/})/*.fadeTo(500,0.4)*/
		.show();
		return this;
	},
	Hide:function()
	{
		//console.log("BackgroundShadow::Hide()");
		this.$shadow.fadeTo(300,0).hide();
		return this;
	},
	Remove:function()
	{
		//console.log("BackgroundShadow::Remove()");
		this.$shadow.remove();
		return this;
	}
};